<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2021.3.23
 * Time: 15:07
 */

class A {
    private static $sfoo = 3;
    private $ifoo  = 4;
}

$vb = function () use ($a) {
    var_dump($a::$sfoo);
};

$res = Closure::bind($vb(),null,'A');


var_dump($res);